<template>
  <div class="hot">
    <h3>人气推荐</h3>
    <div class="box" v-for="item in hotGoodsList" :key="item.id">
      <img :src="item.list_pic_url" alt="" />
      <div class="box_1">
        <p class="p1">{{ item.name }}</p>
        <p class="p2">{{ item.goods_brief }}</p>
      </div>
      <div class="box_2">{{ item.retail_price | formatMoney }}</div>
    </div>
  </div>
</template>
<script>
export default {
  name: "",
  props: ["hotGoodsList"],
  data() {
    return {};
  },
  computed: {},
  components: {},
  methods: {},
  created() {},
  mounted() {},
};
</script>
<style lang="less" scoped>
.hot {
  h3 {
    text-align: center;
    font-size: 18px;
    height: 50px;
    line-height: 50px;
    font-weight: 900;
  }
  .box {
    box-sizing: border-box;
    padding: 8px 16px;
    font-size: 12px;
    color: #323233;
    background-color: #fafafa;
    height: 104px;
    margin-bottom: 10px;
    img {
      width: 88px;
      float: left;
      margin-right: 5px;
    }
    .box_1 {
      .p2 {
        font-size: 18px;
        height: 29px;
        line-height: 29px;
        font-weight: 500;
      }
      .p2 {
        font-size: 12px;
        height: 40px;
        line-height: 40px;
      }
    }
    .box_2 {
      color: #8b0000;
      height: 20px;
      line-height: 20px;
    }
  }
}
</style>
